arm/km: use kw_sdram_size_adjust to adjust SDRAM size
authorHolger Brunck <[email protected]>
Wed, 25 Jul 2012 06:26:03 +0000 (06:26 +0000)
committerPrafulla Wadaskar <[email protected]>
Wed, 3 Oct 2012 11:13:13 +0000 (16:43 +0530)
Some boards may differ only in the SDRAM size. This function allows to
fix the size accordingly and we can use the same u-boot binary for both
boards.

Signed-off-by: Holger Brunck <[email protected]>
Signed-off-by: Gerlando Falauto <[email protected]>
cc: Prafulla Wadaskar <[email protected]>
cc: Valentin Longchamp <[email protected]>

board/keymile/km_arm/km_arm.c

index be8f51c2fc404ff13a1f5a914d01219eaf4637f3..8b5fc568f4a0f753d79c9578cd45180b1baeddd5 100644 (file)
@@ -250,7 +250,8 @@ int board_early_init_f(void)
        tmp = readl(KW_GPIO0_BASE + 4);
        writel(tmp & (~KM_KIRKWOOD_SOFT_I2C_GPIOS) , KW_GPIO0_BASE + 4);
 #endif
-
+       /* adjust SDRAM size for bank 0 */
+       kw_sdram_size_adjust(0);
        kirkwood_mpp_conf(kwmpp_config, NULL);
        return 0;
 }